package com.amkai.aes.webservice.binary.objecthandler.inventory;

public class LongHQLGenerator extends BaseHQLGenerator {

	public LongHQLGenerator(String instanceName, String propertyName,
			ResolverServiceManager resolverMgr) {
		super(instanceName, propertyName, resolverMgr);
	}

	@Override
	public Object getValueFromText(String searchText) {
		try {
			return Long.parseLong(searchText);
		} catch (NumberFormatException e) {
			return Long.MIN_VALUE;
		}
	}

}
